<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:cc="http://xmlns.jcp.org/jsf/composite"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html">

    <!-- INTERFACE -->
    <cc:interface>
        <cc:attribute name="view" default="table"></cc:attribute>
        <cc:attribute name="value" required="true"></cc:attribute>
    </cc:interface>

    <!-- IMPLEMENTATION -->
    <cc:implementation>
        <c:if test="#{cc.attrs.view=='table'}">
            <tr>
                <td>

                    <h:outputText value="#{cc.attrs.value.id}" />
                </td> 
                <td>
                    <h:outputText value="#{cc.attrs.value.name}" />
                </td>
                <td>
                    <h:outputText value="#{cc.attrs.value.amount}" />
                </td>
                <td>
                    <h:outputText value="#{cc.attrs.value.dateEdit}" />
                </td>
            </tr>
        </c:if>
        <c:if test="#{cc.attrs.view=='full'}"></c:if>
    </cc:implementation>
</html>